package com.huitu.whht.base.core.api.rel.z;

import com.huitu.api.rest.AbstractApiResource;
import com.huitu.commons.PageUtils;
import com.huitu.whht.api.core.common.response.ApiResultBuilder;
import com.huitu.whht.api.core.common.annotations.SzyCoreApiResource;
import com.huitu.whht.api.core.common.annotations.SzyCoreApiService;
import com.huitu.whht.api.core.common.response.StatusRespBuilder;
import com.huitu.whht.api.core.common.util.LocalDateTimeUtil;
import java.time.LocalDateTime;
import com.huitu.whht.base.core.api.rel.z.entities.RelZV;
import com.huitu.whht.base.core.api.rel.z.entities.RelZVKey;
import com.huitu.whht.base.core.api.rel.z.entities.RelZVQo;
import com.huitu.whht.base.core.api.rel.z.service.IRelZVService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.List;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

/**
 * 说明: 测站库（湖）容曲线表API,表名称: REL_Z_V <br/>
 * 日期: 2019-04-15
 * @author LiuCW
 */
@Component
@SzyCoreApiResource
@Path("rel/z/v")
public class RelZVResource extends AbstractApiResource {

    private static final Logger LOGGER = LoggerFactory.getLogger(RelZVResource.class);

    private static final String UUID = "2068406a-b107-4b7b-96ee-14d21f6b4274";

    @Override
    public String getUUID() {
        return UUID;
    }

    @Autowired
    @SzyCoreApiService
    IRelZVService relZVService;

    /**
     * @api {get} rel/z/v/{stcd:\\w{8}}/{calTm}/{ptNo:\\w{4}} [R][G]根据主键查询
     * @apiDescription [G]根据主键查询REL_Z_V(测站库（湖）容曲线表)数据
     * @apiName (generate)select by primary key
     * @apiGroup REL_Z_V-测站库（湖）容曲线表
     * @apiVersion 1.0.0
     * @apiSampleRequest rel/z/v/61951600/2012-01-11 10:00:00/24  
     * @apiParam   {String}         stcd               【必须】测站代码
     * @apiParam   {Date}           calTm              【必须】率定时间
     * @apiParam   {String}         ptNo               【必须】点序号
     * @apiSuccess {String}         stcd               测站代码
     * @apiSuccess {Date}           calTm              率定时间(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiSuccess {String}         ptNo               点序号
     * @apiSuccess {Double}         z                  水位
     * @apiSuccess {Double}         w                  蓄水量
     * @apiSuccess {Double}         watA               水面面积
     * @apiSuccess {String}         nt                 备注
     * @apiSuccess {Date}           ts                 时间戳(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiSuccessExample 请求成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "stcd": "61951600",
     * "calTm": "2012-01-11 10:00:00.0",
     * "ptNo": "24  ",
     * "z": 104.8,
     * "w": 2.37,
     * "watA": null,
     * "nt": null,
     * "ts": "2014-09-17 21:40:20.0"
     *  }
     * }
     * @apiUse exceptions
     */
    @GET
    @Path("{stcd:\\w{8}}/{calTm}/{ptNo:\\w{4}}")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response selectByPrimaryKey(@PathParam("stcd") String stcd,@PathParam("calTm") String calTm,@PathParam("ptNo") String ptNo) {
        RelZVKey pk = new RelZVKey();
        pk.setStcd(stcd);
        LocalDateTime.parse(calTm,LocalDateTimeUtil.DATE_TIME_FORMATTER_YMD_HMS);
        pk.setPtNo(ptNo);
        LOGGER.info("根据主键查询 测站库（湖）容曲线表,参数 pk:{}", pk);
        return Response.ok(ApiResultBuilder.create(this, relZVService.selectByPrimaryKey(pk))).build();
    }

    /**
     * @api {post} rel/z/v/list [R][G]根据条件查询
     * @apiDescription [G]根据条件查询REL_Z_V(测站库（湖）容曲线表)数据
     * @apiName (generate)select by filter
     * @apiGroup REL_Z_V-测站库（湖）容曲线表
     * @apiVersion 1.0.0
     * @apiSampleRequest rel/z/v/list
     * @apiParam   {String}         stcd               测站代码
     * @apiParam   {Date}           calTmBgTm          (开始时间)率定时间
     * @apiParam   {Date}           calTmEdTm          (结束时间)率定时间
     * @apiParam   {List(String)}   ptNoList           (数组)点序号
     * @apiParam   {Double}         zMin               (最小)水位
     * @apiParam   {Double}         zMax               (最大)水位
     * @apiParam   {Double}         wMin               (最小)蓄水量
     * @apiParam   {Double}         wMax               (最大)蓄水量
     * @apiParam   {Double}         watAMin            (最小)水面面积
     * @apiParam   {Double}         watAMax            (最大)水面面积
     * @apiParam   {String}         nt                 备注
     * @apiParam   {Date}           tsBgTm             (开始时间)时间戳
     * @apiParam   {Date}           tsEdTm             (结束时间)时间戳
     * @apiSuccess {String}         stcd               测站代码
     * @apiSuccess {Date}           calTm              率定时间
     * @apiSuccess {String}         ptNo               点序号
     * @apiSuccess {Double}         z                  水位
     * @apiSuccess {Double}         w                  蓄水量
     * @apiSuccess {Double}         watA               水面面积
     * @apiSuccess {String}         nt                 备注
     * @apiSuccess {Date}           ts                 时间戳
     * @apiSuccessExample 请求成功:
     * HTTP/1.1 200 OK
     * {
     * "result": [{
     * "stcd": "61951600",
     * "calTm": "2012-01-11 10:00:00.0",
     * "ptNo": "24  ",
     * "z": 104.8,
     * "w": 2.37,
     * "watA": null,
     * "nt": null,
     * "ts": "2014-09-17 21:40:20.0"
     *  }]
     * }
     *
     * @apiSuccessExample 分页请求:
     * request header: Rang={max=50;size=50;field=TS DESC}
     * HTTP/1.1 200 OK
     * {
     * "result": [{
     * "stcd": "61951600",
     * "calTm": "2012-01-11 10:00:00.0",
     * "ptNo": "24  ",
     * "z": 104.8,
     * "w": 2.37,
     * "watA": null,
     * "nt": null,
     * "ts": "2014-09-17 21:40:20.0"
     *  }],
     * "paging": {
     * "count": 3,
     * "total": 120,
     * "finale": false,
     * "index": 1
     * }
     * }
     * @apiUse header_rang
     * @apiUse exceptions
     */
    @POST
    @Path("list")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response selectList(RelZVQo filter) {
        PageUtils.startPageFromRang();
        LOGGER.info("根据条件查询 测站库（湖）容曲线表,参数 RelZVQo:{}", filter);
        return Response.ok(ApiResultBuilder.create(this, relZVService.selectList(filter))).build();
    }

    /**
     * @api {put} rel/z/v [C][G]新增数据
     * @apiPrivate
     * @apiDescription [G]新增REL_Z_V(测站库（湖）容曲线表)数据
     * @apiName (generate)add data
     * @apiGroup REL_Z_V-测站库（湖）容曲线表
     * @apiVersion 1.0.0
     * @apiParam   {String}         stcd               【必须】测站代码
     * @apiParam   {Date}           calTm              【必须】率定时间(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiParam   {String}         ptNo               【必须】点序号
     * @apiParam   {Double}         z                  【必须】水位
     * @apiParam   {Double}         w                  蓄水量
     * @apiParam   {Double}         watA               水面面积
     * @apiParam   {String}         nt                 备注
     * @apiParam   {Date}           ts                 时间戳(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiSuccess {Integer}        status             1:新增成功;0:新增失败.
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据,通常包含新增数据的主键值
     * @apiSampleRequest rel/z/v
     * @apiSuccessExample 新增成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":{
     *   "stcd": "61951600",
     *   "calTm": "2012-01-11 10:00:00.0",
     *   "ptNo": "24  "
     *      }
     *   }
     * }
     @apiSuccessExample 新增失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":{
     *   "stcd": "61951600",
     *   "calTm": "2012-01-11 10:00:00.0",
     *   "ptNo": "24  "
     *      }
     *   }
     * }
     * @apiParamExample {json} 请求示例:
     * {
     * "stcd": "61951600",
     * "calTm": "2012-01-11 10:00:00.0",
     * "ptNo": "24  ",
     * "z": 104.8,
     * "w": 2.37,
     * "watA": null,
     * "nt": null,
     * "ts": "2014-09-17 21:40:20.0"
     * }
     * @apiUse exceptions
     */
    @PUT
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response insert(RelZV record) {
        LOGGER.info("新增 测站库（湖）容曲线表,参数 RelZV:{}", record);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.insert(relZVService.insertSelective(record),record))).build();
    }

    /**
     * @api {post} rel/z/v/insertBatch [C][G]批量新增数据
     * @apiPrivate
     * @apiDescription [G]批量新增REL_Z_V(测站库（湖）容曲线表)数据
     * @apiName (generate)addBatch data
     * @apiGroup REL_Z_V-测站库（湖）容曲线表
     * @apiVersion 1.0.0
     * @apiParam   {String}         stcd               【必须】测站代码
     * @apiParam   {Date}           calTm              【必须】率定时间(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiParam   {String}         ptNo               【必须】点序号
     * @apiParam   {Double}         z                  【必须】水位
     * @apiParam   {Double}         w                  蓄水量
     * @apiParam   {Double}         watA               水面面积
     * @apiParam   {String}         nt                 备注
     * @apiParam   {Date}           ts                 时间戳(时间格式 <font color='red'>yyyy-MM-dd HH:mm:ss</font>)
     * @apiSuccess {Integer}        status             1:新增成功;0:新增失败.
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据,通常包含新增数据的主键值
     * @apiSampleRequest rel/z/v/insertBatch
     * @apiSuccessExample 新增成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":{
     *   "stcd": "61951600",
     *   "calTm": "2012-01-11 10:00:00.0",
     *   "ptNo": "24  "
     *      }
     *   }
     * }
     @apiSuccessExample 新增失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":{
     *   "stcd": "61951600",
     *   "calTm": "2012-01-11 10:00:00.0",
     *   "ptNo": "24  "
     *      }
     *   }
     * }
     * @apiParamExample {json} 请求示例:
     * [{
     * "stcd": "61951600",
     * "calTm": "2012-01-11 10:00:00.0",
     * "ptNo": "24  ",
     * "z": 104.8,
     * "w": 2.37,
     * "watA": null,
     * "nt": null,
     * "ts": "2014-09-17 21:40:20.0"
     * }]
     * @apiUse exceptions
     */
    @POST
    @Path("insertBatch")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response insertBatch(List<RelZV> recordList) {
        LOGGER.info("批量新增 测站库（湖）容曲线表,参数 RelZV:[]", recordList);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.insert(relZVService.insertBatch(recordList),recordList))).build();
    }

    /**
     * @api {put} rel/z/v/{stcd:\\w{8}}/{calTm}/{ptNo:\\w{4}}/update [U][G]根据主键修改
     * @apiPrivate
     * @apiDescription [G]根据主键修改REL_Z_V(测站库（湖）容曲线表)数据
     * @apiName (generate)update data
     * @apiGroup REL_Z_V-测站库（湖）容曲线表
     * @apiVersion 1.0.0
     * @apiParam   {String}         stcd               【必须】测站代码
     * @apiParam   {Date}           calTm              【必须】率定时间
     * @apiParam   {String}         ptNo               【必须】点序号
     * @apiParam   {Double}         z                  【必须】水位
     * @apiParam   {Double}         w                  蓄水量
     * @apiParam   {Double}         watA               水面面积
     * @apiParam   {String}         nt                 备注
     * @apiParam   {Date}           ts                 【必须】时间戳
     * @apiSuccess {Integer}        status             1:修改成功;0:要修改的数据不存在(可能已被删除)
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据
     * @apiSampleRequest rel/z/v/61951600/2012-01-11 10:00:00/24  /update
     * @apiSuccessExample 修改成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":null
     *   }
     * }
     * @apiSuccessExample 修改失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":null
     *   }
     * }
     * @apiParamExample {json} 请求示例:
     * {
     * "stcd": "61951600",
     * "calTm": "2012-01-11 10:00:00.0",
     * "ptNo": "24  ",
     * "z": 104.8,
     * "w": 2.37,
     * "watA": null,
     * "nt": null,
     * "ts": "2014-09-17 21:40:20.0"
     * }
     * @apiUse exceptions
     */
    @PUT
    @Path("{stcd:\\w{8}}/{calTm}/{ptNo:\\w{4}}/update")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response update(@PathParam("stcd") String stcd,@PathParam("calTm") String calTm,@PathParam("ptNo") String ptNo, RelZV record) {
        record.setStcd(stcd);
        LocalDateTime.parse(calTm,LocalDateTimeUtil.DATE_TIME_FORMATTER_YMD_HMS);
        record.setPtNo(ptNo);
        LOGGER.info("根据主键修改 测站库（湖）容曲线表,参数 RelZV:{}", record);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.update(relZVService.updateByPrimaryKey(record)))).build();
    }

    /**
     * @api {put} rel/z/v/{stcd:\\w{8}}/{calTm}/{ptNo:\\w{4}}/update-selective [U][G]根据主键修改(只修改非null字段)
     * @apiPrivate
     * @apiDescription [G]根据主键修改REL_Z_V(测站库（湖）容曲线表)数据,只修改非null字段
     * @apiName (generate)update selected data
     * @apiGroup REL_Z_V-测站库（湖）容曲线表
     * @apiVersion 1.0.0
     * @apiParam   {String}         stcd               测站代码
     * @apiParam   {Date}           calTm              率定时间
     * @apiParam   {String}         ptNo               点序号
     * @apiParam   {Double}         z                  水位
     * @apiParam   {Double}         w                  蓄水量
     * @apiParam   {Double}         watA               水面面积
     * @apiParam   {String}         nt                 备注
     * @apiParam   {Date}           ts                 时间戳
     * @apiSuccess {Integer}        status             1:修改成功;0:要修改的数据不存在(可能已被删除)
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据
     * @apiSampleRequest rel/z/v/61951600/2012-01-11 10:00:00/24  /update-selective
     * * @apiSuccessExample 修改成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":null
     *   }
     * }
     * @apiSuccessExample 修改失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":null
     *   }
     * }
     * @apiParamExample {json} 请求示例:
     * {
     * "stcd": "61951600",
     * "calTm": "2012-01-11 10:00:00.0",
     * "ptNo": "24  ",
     * "z": 104.8,
     * "w": 2.37,
     * "watA": null,
     * "nt": null,
     * "ts": "2014-09-17 21:40:20.0"
     * }
     * @apiUse exceptions
     */
    @PUT
    @Path("{stcd:\\w{8}}/{calTm}/{ptNo:\\w{4}}/update-selective")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response updateSelective(@PathParam("stcd") String stcd,@PathParam("calTm") String calTm,@PathParam("ptNo") String ptNo, RelZV record) {
        record.setStcd(stcd);
        LocalDateTime.parse(calTm,LocalDateTimeUtil.DATE_TIME_FORMATTER_YMD_HMS);
        record.setPtNo(ptNo);
        LOGGER.info("根据主键修改(只修改非null字段) 测站库（湖）容曲线表,参数 RelZV:{}", record);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.update(relZVService.updateByPrimaryKeySelective(record)))).build();
    }

    /**
     * @api {post} rel/z/v/updateBatch [U][G]根据主键批量修改(只修改非null字段)
     * @apiPrivate
     * @apiDescription [G]根据批量主键修改REL_Z_V(测站库（湖）容曲线表)数据,只修改非null字段
     * @apiName (generate)updateBatch selected data
     * @apiGroup REL_Z_V-测站库（湖）容曲线表
     * @apiVersion 1.0.0
     * @apiParam   {String}         stcd               测站代码
     * @apiParam   {Date}           calTm              率定时间
     * @apiParam   {String}         ptNo               点序号
     * @apiParam   {Double}         z                  水位
     * @apiParam   {Double}         w                  蓄水量
     * @apiParam   {Double}         watA               水面面积
     * @apiParam   {String}         nt                 备注
     * @apiParam   {Date}           ts                 时间戳
     * @apiSuccess {Integer}        status             1:修改成功;0:要修改的数据不存在(可能已被删除)
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据
     * @apiSampleRequest  rel/z/v/updateBatch
     * * @apiSuccessExample 修改成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":null
     *   }
     * }
     * @apiSuccessExample 修改失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":null
     *   }
     * }
     * @apiParamExample {json} 请求示例:
     * [{
     * "stcd": "61951600",
     * "calTm": "2012-01-11 10:00:00.0",
     * "ptNo": "24  ",
     * "z": 104.8,
     * "w": 2.37,
     * "watA": null,
     * "nt": null,
     * "ts": "2014-09-17 21:40:20.0"
     * }]
     * @apiUse exceptions
     */
    @POST
    @Path("updateBatch")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response updateBatch(List<RelZV> record) {
        LOGGER.info("根据主键批量修改(只修改非null字段) 测站库（湖）容曲线表,参数 RelZV:{}", record);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.update(relZVService.updateBatch(record)))).build();
    }

    /**
     * @api {delete} rel/z/v/{stcd:\\w{8}}/{calTm}/{ptNo:\\w{4}} [D][G]根据主键删除
     * @apiPrivate
     * @apiDescription [G]根据主键删除REL_Z_V(测站库（湖）容曲线表)数据
     * @apiName (generate)delete by primary key
     * @apiGroup REL_Z_V-测站库（湖）容曲线表
     * @apiVersion 1.0.0
     * @apiSampleRequest rel/z/v/61951600/2012-01-11 10:00:00/24  
     * @apiParam   {String}         stcd               【必须】测站代码
     * @apiParam   {Date}           calTm              【必须】率定时间
     * @apiParam   {String}         ptNo               【必须】点序号
     * @apiSuccess {Integer}        status             1:删除成功;0:要删除的数据不存在(可能已被删除).
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据
     * @apiSuccessExample 删除成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":null
     *   }
     * }
     * @apiSuccessExample 删除失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":null
     *   }
     * }
     * @apiUse exceptions
     */
    @DELETE
    @Path("{stcd:\\w{8}}/{calTm}/{ptNo:\\w{4}}")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response delete(@PathParam("stcd") String stcd,@PathParam("calTm") String calTm,@PathParam("ptNo") String ptNo) {
         RelZVKey pk = new RelZVKey();
        pk.setStcd(stcd);
        LocalDateTime.parse(calTm,LocalDateTimeUtil.DATE_TIME_FORMATTER_YMD_HMS);
        pk.setPtNo(ptNo);
        LOGGER.info("根据主键删除 测站库（湖）容曲线表,参数 pk:{}", pk);
        Integer rows = relZVService.deleteByPrimaryKey(pk);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.delete(rows))).build();
    }

    /**
     * @api {delete} rel/z/v/by-filter [D][G]根据条件删除
     * @apiPrivate
     * @apiDescription [G]根据条件删除REL_Z_V(测站库（湖）容曲线表)数据
     * @apiName (generate)delete by filter
     * @apiGroup REL_Z_V-测站库（湖）容曲线表
     * @apiVersion 1.0.0
     * @apiSampleRequest rel/z/v/by-filter
     * @apiParam   {String}         stcd               测站代码
     * @apiParam   {Date}           calTmBgTm          (开始时间)率定时间
     * @apiParam   {Date}           calTmEdTm          (结束时间)率定时间
     * @apiParam   {List(String)}   ptNoList           (数组)点序号
     * @apiParam   {Double}         zMin               (最小)水位
     * @apiParam   {Double}         zMax               (最大)水位
     * @apiParam   {Double}         wMin               (最小)蓄水量
     * @apiParam   {Double}         wMax               (最大)蓄水量
     * @apiParam   {Double}         watAMin            (最小)水面面积
     * @apiParam   {Double}         watAMax            (最大)水面面积
     * @apiParam   {String}         nt                 备注
     * @apiParam   {Date}           tsBgTm             (开始时间)时间戳
     * @apiParam   {Date}           tsEdTm             (结束时间)时间戳
     * @apiSuccess {Integer}        status             通常1或者>1:删除成功;0:没有符合条件的数据.
     * @apiSuccess {String}         message            成功/失败消息内容
     * @apiSuccess {Object}         data               额外返回的数据
     * @apiSuccessExample 删除成功:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":1,
     * "message":"成功",
     * "data":null
     *   }
     * }
     * @apiSuccessExample 删除失败:
     * HTTP/1.1 200 OK
     * {
     * "result": {
     * "status":0,
     * "message":"失败",
     * "data":null
     *   }
     * }
     * @apiUse exceptions
     */
    @DELETE
    @Path("by-filter")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response deleteByFilter(RelZVQo filter) {
        LOGGER.info("根据条件删除 测站库（湖）容曲线表,参数 RelZVQo:{}", filter);
        Integer rows = relZVService.deleteByFilter(filter);
        return Response.ok(ApiResultBuilder.create(this, StatusRespBuilder.delete(rows))).build();
    }
}
